<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>后台登录</title>
    <link href="<?php echo (MY_CONST_VAL); ?>login/login.css" rel="stylesheet" />
    <script src="<?php echo (MY_CONST_VAL); ?>login/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
        $(function ()
        {
            //校验登陆名、密码、验证码不得为空
            $("#txtSiteHost,#txtPassword,#txtValidate").blur(function ()
            {
                var thisSpan = $("span", $(this).parent());

                if ($(this).val() == "")
                {
                    thisSpan.text("不能为空！").show();
                } else
                {
                    thisSpan.hide();
                }
            });

            //登陆按钮点击
            $("#btnLogin").click(function ()
            {
                if ($("#txtSiteHost").val() == "")
                {
                    $("span", $("#txtSiteHost").parent()).text("不能为空！").show(); return false;
                } else if ($("#txtPassword").val() == "")
                {
                    $("span", $("#txtPassword").parent()).text("不能为空！").show(); return false;
                } else if ($("#txtValidate").val() == "")
                {
                    $("span", $("#txtValidate").parent()).text("不能为空！").show(); return false;
                }
            });

            //点击验证码刷新
            $("#validate_img").click(function ()
            {
                $(this).attr("src", $(this).attr("src") + "1");
            });
        });
    </script>
</head>
<body>
    <div class="zc_box">
        <div class="zc_center">
            <div class="zc_top">
                <img src="<?php echo (MY_CONST_VAL); ?>login/denglu.png" />
            </div>
            <div class="re_center">
                <div class="zc_nr1">
                    <div class="zcnr_lf" style="background: none;">
                        <img src="<?php echo (MY_CONST_VAL); ?>login/dl_pic.jpg" width="410" height="295" />
                    </div>
                    <div class="zcnr_rg" style="padding-left: 40px; width: 440px;">
                        <form action="<?php echo U('dologin');?>" method="post">
                            <table width="100%" style="color: #8e8e8e;" cellpadding="0" cellspacing="0">
                                <tr>
                                    
                                    <td height="25">用户名</td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="txtSiteHost" class="dl_text" name="uname" type="text" />
                                            <span style="color: red; display: none;"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25">密码</td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="txtPassword" class="dl_text1" name="pwd" type="password" />
                                            <span style="color: red; display: none;"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25">验证码
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="txtValidate" class="dl_text2" name="verify" value="" type="text" />
                                        <img id="validate_img" onclick="this.src='<?php echo U('verify');?>?'+ Math.random()" src="<?php echo U('verify');?>" />
                                            <span style="color: red; display: none;"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35">
                                        <input id="ckRemPwd" name="ckRemPwd" type="checkbox" checked="checked" />
                                        <a class="dl_a" href="#">记住密码</a> 
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="btnLogin" class="login_button" name="btnLogin" type="submit" value="登录" />
                                    </td>
                                </tr>
                            </table>
                            <input type="hidden" name="backUrl" value="" />
                        </form>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="huyin">
                    
                </div>
            </div>
            <div class="zc_bottom">
                
            </div>
        </div>
    </div>
</body>
</html>